<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function(ModuleService $moduleService){
	$module=$moduleService->getdefault ();
	$class="Modules\\".$module['name']."\Http\\Controllers\HomeController";
	return app()->build ($class)->index();
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
Route::any ('/upload','UploadController@upload');
Route::any('/upload-simditor','UploadController@editUpload');
